Skip to content

Capture UC dependencies for vector search indexes - #6655

Open
janniklasrose wants to merge 2 commits into
mainfrom
janniklasrose/vector-search-uc-dependencies
Open

Capture UC dependencies for vector search indexes#6655
janniklasrose wants to merge 2 commits into
mainfrom
janniklasrose/vector-search-uc-dependencies

Conversation

@janniklasrose

@janniklasrose janniklasrose commented Sep 11, 2026

Copy link
Copy Markdown
Member

What

Extend the CaptureUCDependencies mutator to handle vector search indexes. A vector search index's name is a three-part catalog.schema.index UC identifier. When the catalog or schema is also defined in the same bundle, the mutator now rewrites those segments to ${resources.catalogs.<key>.name} / ${resources.schemas.<key>.name} references, so the deploy engine captures the deploy-time dependency and creates the catalog/schema before the index.

This follows the existing compound-name handling for quality monitors (OutputSchemaName), just with three segments instead of two.

Why

Without this, a bundle that defines a schema and a vector search index living in that schema has no captured ordering dependency, so a deploy can attempt to create the index before its schema exists.

Tests

  • Unit tests: wired the index into the combined TestCaptureUCDependencies and added TestCaptureUCDependenciesVectorSearchIndexEdgeCases (match / catalog-only / no-match / empty / two-part / nil), plus the nil-resources panic-safety case.
  • Acceptance test: bundle/resource_deps/implicit_deps_vector_search_index mirrors implicit_deps_quality_monitor; all EnvMatrix variants (terraform/direct × DMS) produce identical output.

This pull request and its description were written by Isaac.

janniklasrose and others added 2 commits September 11, 2026 22:13
@github-actions

Copy link
Copy Markdown
Contributor

Approval status: pending

/acceptance/bundle/ - needs approval

5 files changed
Suggested: @denik
Also eligible: @andrewnester, @shreyas-goenka, @lennartkats-db, @pietern, @anton-107

/bundle/ - needs approval

Files: bundle/config/mutator/resourcemutator/capture_uc_dependencies.go, bundle/config/mutator/resourcemutator/capture_uc_dependencies_test.go
Suggested: @denik
Also eligible: @andrewnester, @shreyas-goenka, @lennartkats-db, @pietern, @anton-107

General files (require maintainer)

Files: .nextchanges/bundles/vector-search-index-uc-deps.md
Based on git history:

  • @denik -- recent work in .nextchanges/bundles/

Any maintainer (@andrewnester, @anton-107, @denik, @pietern, @shreyas-goenka, @simonfaltum, @renaudhartert-db, @lennartkats-db, @rugpanov, @rclarey) can approve all areas.
See OWNERS for ownership rules.

@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 043f816

Run: 34643605354

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux 1 275 16 6:10
💚​ aws windows 1 277 14 5:29
💚​ azure linux 1 274 16 6:49
💚​ azure windows 1 276 14 4:06
💚​ gcp linux 1 275 16 6:30
💚​ gcp windows 1 277 14 5:34
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 3 slowest tests (at least 2 minutes):
duration env testname
4:03 aws windows TestAccept
3:32 azure windows TestAccept
3:22 gcp windows TestAccept

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants